from django.contrib.auth.models import AbstractUser
from django.db import models

class User(AbstractUser):

    # 扩展字段，比如角色
    ROLE_CHOICES = (
        ('user', '普通用户'),
        ('reviewer', '审核员'),
        ('admin', '超级管理员'),
    )
    role = models.CharField(max_length=20, choices=ROLE_CHOICES, default='user')